<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="category.form.search.header"/></title>
    <%-- Calendar Setup - put in decorator if needed in multiple pages --%>
</head>

<p><fmt:message key="basic.search.form.title"/></p>
<s:form name="categoryForm" action="getSearchCategory" method="post">
<s:hidden name="cateId" value="%{entity.id}"/>
	<s:select key="category.field" name="fieldId" cssStyle="max-width: 500px !important;" list="fields" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
    <s:select key="category.workflow" name="workflowId" cssStyle="max-width: 500px !important;" list="workflows" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
    <s:textfield key="category.categoryName" name="categoryName" size="70"/>
<tr>
    <td></td>
    <td>
        <s:submit cssClass="button" name="search" value="%{getText('button.search.title')}" theme="simple" onclick="this.blur()"></s:submit>
        <s:submit cssClass="button" name="cancel" value="%{getText('button.cancel.title')}" theme="simple" onclick="form.onsubmit=null"></s:submit>
        <input class="button" type="button" value="<fmt:message key="button.reset.title"/>" onClick="this.form.reset()" />
    </td>
</tr>

</s:form>
<s:set var="categories" value="list" scope="request"/>
<display:table name="categories" class="table" requestURI="" id="categoryList" export="false" pagesize="10">
    <display:column property="categoryName" paramId="cateId" paramProperty="id" href="viewCategory.html" media="html" sortable="true" titleKey="category.categoryName" escapeXml="true"/>
    <display:column property="code" sortable="true" titleKey="category.code" escapeXml="true"/>
    
    <display:column href="editCategory.html" media="html" paramId="cateId" paramProperty="id" titleKey="category.function"  >
		<input type="image"  onclick="this.blur()" class="button" src="${ctx}/images/btn_edit.png"  name="return" align="left" height="20" width="20" >
	</display:column>
</display:table>

